package com.icloud.system.boot.dto;

import com.icloud.common.core.constant.ValidateConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;


@ApiModel("登录参数")
@Data
public class LoginDto {

    @NotEmpty(message = ValidateConstant.NOT_EMPTY)
    @ApiModelProperty(value = "用户名", required = true)
    private String username;

    @NotEmpty(message = ValidateConstant.NOT_EMPTY)
    @ApiModelProperty(value = "密码", required = true)
    private String password;
}
